import axios from '@/request'
import {randomSalt} from "@/util";

export function register(email, username, password, identity) {
    // console.log(identity)
    // console.log("gjhkl")
    const salt = randomSalt()
    //sha256的库
    return axios.post('user/register', {
        email: email,
        username: username,
        password: password,
        identity: identity,
        salt: salt
    })
}